package creational.builder;

/**
 * @Description: 建造者抽象
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public abstract class AbstractBuilder {
    protected AbstractMessage message;

    public void buildFrom(String from) {
        message.setFrom(from);
    }

    public void buildTo(String to) {
        message.setTo(to);
    }

    public void buildData(String data) {
        message.setData(data);
    }

    public void send() {
        message.send();
    }
}
